package com.woniuxy.controller.othercontroller;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.woniuxy.pojo.DetailCost;
import com.woniuxy.service.basics.CarService;
import com.woniuxy.service.other.CarCostService;

@RestController
@RequestMapping("/carCost")
public class CarCostController {   

	@Autowired
	private CarCostService carCostService;
	
	@RequestMapping("/getAll")
	public Map<String, List<String>> getAll(){
		Map<String, List<String>> map=carCostService.getAllCost();
		return map;
	}
	@RequestMapping("/getDetail")
	public List<DetailCost> getDetail(String carlicense){
		List<DetailCost> list=carCostService.getDetail(carlicense);
		
		return list;
	}
	
}
